package com.yenroc.invoice.pojo;

import com.yenroc.invoice.annotations.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * 数字化电子（不动产经营租赁服务）发票创建实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Schema(description = "数字化电子（不动产经营租赁服务）发票创建实体类")
public class ImmovableLeaseInvoiceCreateDTO extends CommonInvoiceDTO implements Serializable {

    private static final long serialVersionUID = -6523867488374557832L;

    @Schema(description = "发票明细列表", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "发票明细列表不可为空")
    private List<ImmovableLeaseInvoiceDetailDTO> detailList;
}